<template>
  <div>
    <my-nav-bar>
      <skeleton v-if="showSkeleton" />
      <router-view />
    </my-nav-bar>
  </div>
</template>
<script>
import { mapState } from "vuex";
import MyNavBar from "./components/navBar/navBar.vue";

export default {
  components: { MyNavBar },
  computed: {
    ...mapState({
      showSkeleton: (state) => state.showSkeleton,
    }),
  },
};
</script>
